package com.huatai.datacenter.controller.dataquality;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huatai.common.api.R;
import com.huatai.datacenter.entity.TbQualityRunLogEntity;
import com.huatai.datacenter.mapper.TbQualityRunLogMapper;
import com.huatai.datacenter.service.TbQualityRunLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/tbQualityRunLog")
@Api(value = "http运行日志管理",tags = "http运行日志管理")
public class TbQualityRunLogController {
    @Autowired
    private TbQualityRunLogService tbQualityRunLogService;

    @GetMapping("/dataList")
    @ApiOperation("获取http接入数据运行日志")
    public R<Page<TbQualityRunLogEntity>> dataList(@RequestParam String requestId,@RequestParam int pageNum,@RequestParam int pageSize){
        Page<TbQualityRunLogEntity> page = tbQualityRunLogService.dataList(requestId, pageNum, pageSize);
        return R.data(page,"获取http接入数据运行日志成功");
    }
}
